/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

$ouiCheckableCardPadding: map-get($ouiPanelPaddingModifiers, 'paddingMedium');

.ouiCheckableCard {
  transition: border-color $ouiAnimSpeedNormal ease-in;

  &:not(.ouiCheckableCard-isDisabled) {
    &.ouiCheckableCard-isChecked {
      border-color: $ouiColorPrimary;
    }
  }
}

.ouiCheckableCard__label {
  cursor: pointer;
  // Expand the label to cover the whole panel for easier click target
  display: block;
  width: calc(100% + #{$ouiCheckableCardPadding * 2});
  padding: $ouiCheckableCardPadding;
  margin: -$ouiCheckableCardPadding;
}

.ouiCheckableCard__label-isDisabled {
  color: $ouiFormControlDisabledColor;
  cursor: not-allowed;
}

.ouiCheckableCard__children {
  margin-top: $ouiSize;
}


/* OUI -> EUI Aliases */
$euiCheckableCardPadding: $ouiCheckableCardPadding;
/* End of Aliases */
